import fetch from './fetch'
//获取所有英雄
export function getHeroList(params) {
  return fetch({
    url: '/hero/getHero',
    method: 'GET',
    params
  })
}
//获取英雄分类
export function getHeroPosi(params){
  return fetch({
    url:'/posi/getAllPosi',
    method:'GET',
    params
  })
}

//登录
export function login(data){
  return fetch({
    url:'/users/login',
    method:'POST',
    data
  })
}
// 添加商品
export function addGood(data) {
  return fetch({
    url: '/goods/add',
    method: 'POST',
    data
  })
}

